package com.hmall.mapper;

import com.hmall.model.MallOrderItemDetail;
import com.hmall.util.MyMapper;
import com.hmall.vo.mallOrderItemDetailVo;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface MallOrderItemDetailMapper extends MyMapper<MallOrderItemDetail> {
    List<MallOrderItemDetail> selectByItemId(@Param("item_id") Integer item_id);

    void deleteByItemId(@Param("item_id") Integer item_id);

    List<mallOrderItemDetailVo> selectByOrderId(@Param("id") Integer id);

    List<MallOrderItemDetail> selectByGroup(@Param("group_no") Long group_no);

    Integer checkSelect(@Param("order_no") Long order_no);

    MallOrderItemDetail selectByCodeAndFactory(@Param("material_code") String material_code, @Param("inventory_organization") String inventory_organization, @Param("item_id") Integer item_id, @Param("grade") String grade, @Param("color") String color, @Param("twisting") String twisting, @Param("machine_no") String machine_no);
}